package com.dc.project.system.dto;

import com.dc.common.core.PageParamDto;
import com.dc.common.validated.InsertGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 系统角色表(SysRole)查询类
 *
 * @author zhuangcy
 * @since 2021-06-01 14:25:28
 */
@Data
@ApiModel(value = "系统角色表Dto")
public class SysRoleDto extends PageParamDto {

    @ApiModelProperty(name = "userId", value = "用户id")
    private Integer userId;

    @NotNull(message = "角色id不能为空", groups = {InsertGroup.class})
    @ApiModelProperty(name = "roleId", value = "角色id")
    private Integer roleId;

    @ApiModelProperty(name = "roleCode", value = "角色编码")
    private String roleCode;

    @ApiModelProperty(name = "roleName", value = "角色名称")
    private String roleName;

    @NotNull(message = "权限范围不能为空", groups = {InsertGroup.class})
    @ApiModelProperty(name = "dataScope", value = "权限范围")
    private String dataScope;

    @NotNull(message = "部门id数组不能为空", groups = {InsertGroup.class})
    @ApiModelProperty(name = "deptIds", value = "部门id数组")
    private List<Integer> deptIds;

    @NotNull(message = "菜单id数组不能为空", groups = {InsertGroup.class})
    @ApiModelProperty(name = "menuIds", value = "菜单id数组")
    private List<Integer> menuIds;


}